home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / telecomm / archivers / sharutils-4.1.lha / SharUtils-4.1 / src / configure < prev    next >
Encoding:
Text File  |  1994-11-06  |  58.8 KB  |  2,313 lines

  1. #!/bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.1 
  5. # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --disable-uucode        disable installation of uuencode and uudecode"
  16. ac_help="$ac_help
  17.   --with-dmalloc          use dmalloc, as in dmalloc.tar.gz from
  18.                           @/ftp.antaire.com:antaire/src/dmalloc."
  19.  
  20. # Initialize some variables set by options.
  21. # The variables have the same names as the options, with
  22. # dashes changed to underlines.
  23. build=NONE
  24. cache_file=./config.cache
  25. exec_prefix=NONE
  26. host=NONE
  27. no_create=
  28. nonopt=NONE
  29. no_recursion=
  30. prefix=NONE
  31. program_prefix=NONE
  32. program_suffix=NONE
  33. program_transform_name=s,x,x,
  34. silent=
  35. site=
  36. srcdir=
  37. target=NONE
  38. verbose=
  39. x_includes=NONE
  40. x_libraries=NONE
  41.  
  42. # Initialize some other variables.
  43. subdirs=
  44.  
  45. ac_prev=
  46. for ac_option
  47. do
  48.  
  49.   # If the previous option needs an argument, assign it.
  50.   if test -n "$ac_prev"; then
  51.     eval "$ac_prev=\$ac_option"
  52.     ac_prev=
  53.     continue
  54.   fi
  55.  
  56.   case "$ac_option" in
  57.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  58.   *) ac_optarg= ;;
  59.   esac
  60.  
  61.   # Accept the important Cygnus configure options, so we can diagnose typos.
  62.  
  63.   case "$ac_option" in
  64.  
  65.   -build | --build | --buil | --bui | --bu | --b)
  66.     ac_prev=build ;;
  67.   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  68.     build="$ac_optarg" ;;
  69.  
  70.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  71.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  72.     ac_prev=cache_file ;;
  73.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  74.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  75.     cache_file="$ac_optarg" ;;
  76.  
  77.   -disable-* | --disable-*)
  78.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  79.     # Reject names that are not valid shell variable names.
  80.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  81.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  82.     fi
  83.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  84.     eval "enable_${ac_feature}=no" ;;
  85.  
  86.   -enable-* | --enable-*)
  87.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  88.     # Reject names that are not valid shell variable names.
  89.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  90.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  91.     fi
  92.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  93.     case "$ac_option" in
  94.       *=*) ;;
  95.       *) ac_optarg=yes ;;
  96.     esac
  97.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  98.  
  99.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  100.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  101.   | --exec | --exe | --ex)
  102.     ac_prev=exec_prefix ;;
  103.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  104.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  105.   | --exec=* | --exe=* | --ex=*)
  106.     exec_prefix="$ac_optarg" ;;
  107.  
  108.   -gas | --gas | --ga | --g)
  109.     # Obsolete; use --with-gas.
  110.     with_gas=yes ;;
  111.  
  112.   -help | --help | --hel | --he)
  113.     # Omit some internal or obsolete options to make the list less imposing.
  114.     # This message is too long to be a string in the A/UX 3.1 sh.
  115.     cat << EOF
  116. Usage: configure [options] [host]
  117. Options: [defaults in brackets after descriptions]
  118. Configuration:
  119.   --cache-file=FILE       cache test results in FILE
  120.   --help                  print this message
  121.   --no-create             do not create output files
  122.   --quiet, --silent       do not print \`checking...' messages
  123.   --version               print the version of autoconf that created configure
  124. Directory and file names:
  125.   --prefix=PREFIX         install architecture-independent files in PREFIX
  126.                           [$ac_default_prefix]
  127.   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  128.                           [same as prefix]
  129.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  130.   --program-prefix=PREFIX prepend PREFIX to installed program names
  131.   --program-suffix=SUFFIX append SUFFIX to installed program names
  132.   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  133. Host type:
  134.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  135.   --host=HOST             configure for HOST [guessed]
  136.   --target=TARGET         configure for TARGET [TARGET=HOST]
  137. Features and packages:
  138.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  139.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  140.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  141.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  142.   --x-includes=DIR        X include files are in DIR
  143.   --x-libraries=DIR       X library files are in DIR
  144. --enable and --with options recognized:$ac_help
  145. EOF
  146.     exit 0 ;;
  147.  
  148.   -host | --host | --hos | --ho)
  149.     ac_prev=host ;;
  150.   -host=* | --host=* | --hos=* | --ho=*)
  151.     host="$ac_optarg" ;;
  152.  
  153.   -nfp | --nfp | --nf)
  154.     # Obsolete; use --without-fp.
  155.     with_fp=no ;;
  156.  
  157.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  158.   | --no-cr | --no-c)
  159.     no_create=yes ;;
  160.  
  161.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  162.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  163.     no_recursion=yes ;;
  164.  
  165.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  166.     ac_prev=prefix ;;
  167.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  168.     prefix="$ac_optarg" ;;
  169.  
  170.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  171.   | --program-pre | --program-pr | --program-p)
  172.     ac_prev=program_prefix ;;
  173.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  174.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  175.     program_prefix="$ac_optarg" ;;
  176.  
  177.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  178.   | --program-suf | --program-su | --program-s)
  179.     ac_prev=program_suffix ;;
  180.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  181.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  182.     program_suffix="$ac_optarg" ;;
  183.  
  184.   -program-transform-name | --program-transform-name \
  185.   | --program-transform-nam | --program-transform-na \
  186.   | --program-transform-n | --program-transform- \
  187.   | --program-transform | --program-transfor \
  188.   | --program-transfo | --program-transf \
  189.   | --program-trans | --program-tran \
  190.   | --progr-tra | --program-tr | --program-t)
  191.     ac_prev=program_transform_name ;;
  192.   -program-transform-name=* | --program-transform-name=* \
  193.   | --program-transform-nam=* | --program-transform-na=* \
  194.   | --program-transform-n=* | --program-transform-=* \
  195.   | --program-transform=* | --program-transfor=* \
  196.   | --program-transfo=* | --program-transf=* \
  197.   | --program-trans=* | --program-tran=* \
  198.   | --progr-tra=* | --program-tr=* | --program-t=*)
  199.     program_transform_name="$ac_optarg" ;;
  200.  
  201.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  202.   | -silent | --silent | --silen | --sile | --sil)
  203.     silent=yes ;;
  204.  
  205.   -site | --site | --sit)
  206.     ac_prev=site ;;
  207.   -site=* | --site=* | --sit=*)
  208.     site="$ac_optarg" ;;
  209.  
  210.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  211.     ac_prev=srcdir ;;
  212.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  213.     srcdir="$ac_optarg" ;;
  214.  
  215.   -target | --target | --targe | --targ | --tar | --ta | --t)
  216.     ac_prev=target ;;
  217.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  218.     target="$ac_optarg" ;;
  219.  
  220.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  221.     verbose=yes ;;
  222.  
  223.   -version | --version | --versio | --versi | --vers)
  224.     echo "configure generated by autoconf version 2.1"
  225.     exit 0 ;;
  226.  
  227.   -with-* | --with-*)
  228.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  229.     # Reject names that are not valid shell variable names.
  230.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  231.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  232.     fi
  233.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  234.     case "$ac_option" in
  235.       *=*) ;;
  236.       *) ac_optarg=yes ;;
  237.     esac
  238.     eval "with_${ac_package}='$ac_optarg'" ;;
  239.  
  240.   -without-* | --without-*)
  241.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  242.     # Reject names that are not valid shell variable names.
  243.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  244.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  245.     fi
  246.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  247.     eval "with_${ac_package}=no" ;;
  248.  
  249.   --x)
  250.     # Obsolete; use --with-x.
  251.     with_x=yes ;;
  252.  
  253.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  254.   | --x-incl | --x-inc | --x-in | --x-i)
  255.     ac_prev=x_includes ;;
  256.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  257.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  258.     x_includes="$ac_optarg" ;;
  259.  
  260.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  261.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  262.     ac_prev=x_libraries ;;
  263.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  264.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  265.     x_libraries="$ac_optarg" ;;
  266.  
  267.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  268.     ;;
  269.  
  270.   *) 
  271.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  272.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  273.     fi
  274.     if test "x$nonopt" != xNONE; then
  275.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  276.     fi
  277.     nonopt="$ac_option"
  278.     ;;
  279.  
  280.   esac
  281. done
  282.  
  283. if test -n "$ac_prev"; then
  284.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  285. fi
  286.  
  287. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  288.  
  289. # File descriptor usage:
  290. # 0 unused; standard input
  291. # 1 file creation
  292. # 2 errors and warnings
  293. # 3 unused; some systems may open it to /dev/tty
  294. # 4 checking for... messages and results
  295. # 5 compiler messages saved in config.log
  296. if test "$silent" = yes; then
  297.   exec 4>/dev/null
  298. else
  299.   exec 4>&1
  300. fi
  301. exec 5>./config.log
  302.  
  303. echo "\
  304. This file contains any messages produced by compilers while
  305. running configure, to aid debugging if configure makes a mistake.
  306. " 1>&5
  307.  
  308. # Strip out --no-create and --no-recursion so they do not pile up.
  309. # Also quote any args containing shell metacharacters.
  310. ac_configure_args=
  311. for ac_arg
  312. do
  313.   case "$ac_arg" in
  314.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  315.   | --no-cr | --no-c) ;;
  316.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  317.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  318.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  319.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  320.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  321.   esac
  322. done
  323.  
  324. # NLS nuisances.
  325. # Only set LANG and LC_ALL to C if already set.
  326. # These must not be set unconditionally because not all systems understand
  327. # e.g. LANG=C (notably SCO).
  328. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  329. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  330.  
  331. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  332. rm -rf conftest* confdefs.h
  333. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  334. echo > confdefs.h
  335.  
  336. # A filename unique to this package, relative to the directory that
  337. # configure is in, which we can look for to find out if srcdir is correct.
  338. ac_unique_file=shar.c
  339.  
  340. # Find the source files, if location was not specified.
  341. if test -z "$srcdir"; then
  342.   ac_srcdir_defaulted=yes
  343.   # Try the directory containing this script, then its parent.
  344.   ac_prog=$0
  345.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  346.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  347.   srcdir=$ac_confdir
  348.   if test ! -r $srcdir/$ac_unique_file; then
  349.     srcdir=..
  350.   fi
  351. else
  352.   ac_srcdir_defaulted=no
  353. fi
  354. if test ! -r $srcdir/$ac_unique_file; then
  355.   if test "$ac_srcdir_defaulted" = yes; then
  356.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  357.   else
  358.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  359.   fi
  360. fi
  361. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  362.  
  363. # Prefer explicitly selected file to automatically selected ones.
  364. if test -z "$CONFIG_SITE"; then
  365.   if test "x$prefix" != xNONE; then
  366.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  367.   else
  368.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  369.   fi
  370. fi
  371. for ac_site_file in $CONFIG_SITE; do
  372.   if test -r "$ac_site_file"; then
  373.     echo "loading site script $ac_site_file"
  374.     . "$ac_site_file"
  375.   fi
  376. done
  377.  
  378. if test -r "$cache_file"; then
  379.   echo "loading cache $cache_file"
  380.   . $cache_file
  381. else
  382.   echo "creating cache $cache_file"
  383.   > $cache_file
  384. fi
  385.  
  386. ac_ext=c
  387. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  388. ac_cpp='$CPP $CPPFLAGS'
  389. ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
  390. ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
  391.  
  392. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  393.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  394.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  395.     ac_n= ac_c='
  396. ' ac_t='    '
  397.   else
  398.     ac_n=-n ac_c= ac_t=
  399.   fi
  400. else
  401.   ac_n= ac_c='\c' ac_t=
  402. fi
  403.  
  404.  
  405.  
  406. if test "$program_transform_name" = s,x,x,; then
  407.   program_transform_name=
  408. else
  409.   # Double any \ or $.
  410.   echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
  411.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  412.   rm -f conftestsed
  413. fi
  414. test "$program_prefix" != NONE &&
  415.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  416. # Use a double $ so make ignores it.
  417. test "$program_suffix" != NONE &&
  418.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  419.  
  420. # sed with no file args requires a program.
  421. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  422.  
  423.  
  424. PRODUCT=sharutils
  425. VERSION=4.1
  426. PROGRAMS="shar unshar"
  427. cat >> confdefs.h <<EOF
  428. #define PRODUCT "$PRODUCT"
  429. EOF
  430.  
  431. cat >> confdefs.h <<EOF
  432. #define VERSION "$VERSION"
  433. EOF
  434.  
  435.  
  436.  
  437.  
  438.  
  439. # Extract the first word of "gcc", so it can be a program name with args.
  440. set dummy gcc; ac_word=$2
  441. echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  442. if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
  443.   echo $ac_n "(cached) $ac_c" 1>&4
  444. else
  445.   if test -n "$CC"; then
  446.   ac_cv_prog_CC="$CC" # Let the user override the test.
  447. else
  448.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  449.   for ac_dir in $PATH; do
  450.     test -z "$ac_dir" && ac_dir=.
  451.     if test -f $ac_dir/$ac_word; then
  452.       ac_cv_prog_CC="gcc"
  453.       break
  454.     fi
  455.   done
  456.   IFS="$ac_save_ifs"
  457.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  458. fi
  459. fi
  460. CC="$ac_cv_prog_CC"
  461. if test -n "$CC"; then
  462.   echo "$ac_t""$CC" 1>&4
  463. else
  464.   echo "$ac_t""no" 1>&4
  465. fi
  466.  
  467.  
  468. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4
  469. if eval "test \"`echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then
  470.   echo $ac_n "(cached) $ac_c" 1>&4
  471. else
  472.   cat > conftest.c <<EOF
  473. #ifdef __GNUC__
  474.   yes;
  475. #endif
  476. EOF
  477. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  478.   ac_cv_prog_gcc=yes
  479. else
  480.   ac_cv_prog_gcc=no
  481. fi
  482. fi
  483. echo "$ac_t""$ac_cv_prog_gcc" 1>&4
  484. if test $ac_cv_prog_gcc = yes; then
  485.   GCC=yes
  486.   if test "${CFLAGS+set}" != set; then
  487.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4
  488. if eval "test \"`echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  489.   echo $ac_n "(cached) $ac_c" 1>&4
  490. else
  491.   echo 'void f(){}' > conftest.c
  492. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  493.   ac_cv_prog_gcc_g=yes
  494. else
  495.   ac_cv_prog_gcc_g=no
  496. fi
  497. rm -f conftest*
  498.  
  499. fi
  500.     echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4
  501.     if test $ac_cv_prog_gcc_g = yes; then
  502.       CFLAGS="-g -O"
  503.     else
  504.       CFLAGS="-O"
  505.     fi
  506.   fi
  507. else
  508.   GCC=
  509.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  510. fi
  511.  
  512. ac_aux_dir=
  513. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  514.   if test -f $ac_dir/install-sh; then
  515.     ac_aux_dir=$ac_dir
  516.     ac_install_sh="$ac_aux_dir/install-sh -c"
  517.     break
  518.   elif test -f $ac_dir/install.sh; then
  519.     ac_aux_dir=$ac_dir
  520.     ac_install_sh="$ac_aux_dir/install.sh -c"
  521.     break
  522.   fi
  523. done
  524. if test -z "$ac_aux_dir"; then
  525.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  526. fi
  527. ac_config_guess=$ac_aux_dir/config.guess
  528. ac_config_sub=$ac_aux_dir/config.sub
  529. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  530.  
  531. # Find a good install program.  We prefer a C program (faster),
  532. # so one script is as good as another.  But avoid the broken or
  533. # incompatible versions:
  534. # SysV /etc/install, /usr/sbin/install
  535. # SunOS /usr/etc/install
  536. # IRIX /sbin/install
  537. # AIX /bin/install
  538. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  539. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  540. # ./install, which can be erroneously created by make from ./install.sh.
  541. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
  542. if test -z "$INSTALL"; then
  543. if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
  544.   echo $ac_n "(cached) $ac_c" 1>&4
  545. else
  546.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  547.   for ac_dir in $PATH; do
  548.     case "$ac_dir" in
  549.     ''|.|/etc|/usr/sbin|/usr/etc|/sbin|/usr/afsws/bin|/usr/ucb) ;;
  550.     *)
  551.       # OSF1 and SCO ODT 3.0 have their own names for install.
  552.       for ac_prog in ginstall installbsd scoinst install; do
  553.         if test -f $ac_dir/$ac_prog; then
  554.       if test $ac_prog = install &&
  555.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  556.         # AIX install.  It has an incompatible calling convention.
  557.         # OSF/1 installbsd also uses dspmsg, but is usable.
  558.         :
  559.       else
  560.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  561.         break 2
  562.       fi
  563.     fi
  564.       done
  565.       ;;
  566.     esac
  567.   done
  568.   IFS="$ac_save_ifs"
  569.   # As a last resort, use the slow shell script.
  570.   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  571. fi
  572.   INSTALL="$ac_cv_path_install"
  573. fi
  574. echo "$ac_t""$INSTALL" 1>&4
  575.  
  576. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  577. # It thinks the first close brace ends the variable substitution.
  578. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  579.  
  580. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  581.  
  582. # Extract the first word of "ranlib", so it can be a program name with args.
  583. set dummy ranlib; ac_word=$2
  584. echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  585. if eval "test \"`echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  586.   echo $ac_n "(cached) $ac_c" 1>&4
  587. else
  588.   if test -n "$RANLIB"; then
  589.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  590. else
  591.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  592.   for ac_dir in $PATH; do
  593.     test -z "$ac_dir" && ac_dir=.
  594.     if test -f $ac_dir/$ac_word; then
  595.       ac_cv_prog_RANLIB="ranlib"
  596.       break
  597.     fi
  598.   done
  599.   IFS="$ac_save_ifs"
  600.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  601. fi
  602. fi
  603. RANLIB="$ac_cv_prog_RANLIB"
  604. if test -n "$RANLIB"; then
  605.   echo "$ac_t""$RANLIB" 1>&4
  606. else
  607.   echo "$ac_t""no" 1>&4
  608. fi
  609.  
  610.  
  611. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
  612. # On Suns, sometimes $CPP names a directory.
  613. if test -n "$CPP" && test -d "$CPP"; then
  614.   CPP=
  615. fi
  616. if test -z "$CPP"; then
  617. if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
  618.   echo $ac_n "(cached) $ac_c" 1>&4
  619. else
  620.     # This must be in double quotes, not single quotes, because CPP may get
  621.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  622.   CPP="${CC-cc} -E"
  623.   # On the NeXT, cc -E runs the code through the compiler's parser,
  624.   # not just through cpp.
  625.   cat > conftest.$ac_ext <<EOF
  626. #line 627 "configure"
  627. #include "confdefs.h"
  628. #include <assert.h>
  629. Syntax Error
  630. EOF
  631. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  632. ac_err=`grep -v '^ *+' conftest.out`
  633. if test -z "$ac_err"; then
  634.   :
  635. else
  636.   echo "$ac_err" >&5
  637.   rm -rf conftest*
  638.   CPP="${CC-cc} -E -traditional-cpp"
  639.   cat > conftest.$ac_ext <<EOF
  640. #line 641 "configure"
  641. #include "confdefs.h"
  642. #include <assert.h>
  643. Syntax Error
  644. EOF
  645. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  646. ac_err=`grep -v '^ *+' conftest.out`
  647. if test -z "$ac_err"; then
  648.   :
  649. else
  650.   echo "$ac_err" >&5
  651.   rm -rf conftest*
  652.   CPP=/lib/cpp
  653. fi
  654. rm -f conftest*
  655. fi
  656. rm -f conftest*
  657.   ac_cv_prog_CPP="$CPP"
  658. fi
  659. fi
  660. CPP="$ac_cv_prog_CPP"
  661. echo "$ac_t""$CPP" 1>&4
  662.  
  663. echo $ac_n "checking for AIX""... $ac_c" 1>&4
  664. cat > conftest.$ac_ext <<EOF
  665. #line 666 "configure"
  666. #include "confdefs.h"
  667. #ifdef _AIX
  668.   yes
  669. #endif
  670.  
  671. EOF
  672. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  673.   egrep "yes" >/dev/null 2>&1; then
  674.   rm -rf conftest*
  675.   echo "$ac_t""yes" 1>&4; cat >> confdefs.h <<\EOF
  676. #define _ALL_SOURCE 1
  677. EOF
  678.  
  679. else
  680.   rm -rf conftest*
  681.   echo "$ac_t""no" 1>&4
  682. fi
  683. rm -f conftest*
  684.  
  685.  
  686. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&4
  687. if test -d /etc/conf/kconfig.d &&
  688.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  689. then
  690.   echo "$ac_t""yes" 1>&4
  691.   ISC=yes # If later tests want to check for ISC.
  692.   cat >> confdefs.h <<\EOF
  693. #define _POSIX_SOURCE 1
  694. EOF
  695.  
  696.   if test "$GCC" = yes; then
  697.     CC="$CC -posix"
  698.   else
  699.     CC="$CC -Xp"
  700.   fi
  701. else
  702.   echo "$ac_t""no" 1>&4
  703.   ISC=
  704. fi
  705.  
  706. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  707. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&4
  708. if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  709.   echo $ac_n "(cached) $ac_c" 1>&4
  710. else
  711.   cat > conftest.$ac_ext <<EOF
  712. #line 713 "configure"
  713. #include "confdefs.h"
  714. #include <minix/config.h>
  715. EOF
  716. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  717. ac_err=`grep -v '^ *+' conftest.out`
  718. if test -z "$ac_err"; then
  719.   rm -rf conftest*
  720.   eval "ac_cv_header_$ac_safe=yes"
  721. else
  722.   echo "$ac_err" >&5
  723.   rm -rf conftest*
  724.   eval "ac_cv_header_$ac_safe=no"
  725. fi
  726. rm -f conftest*
  727. fi
  728. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  729.   echo "$ac_t""yes" 1>&4
  730.   MINIX=yes
  731. else
  732.   echo "$ac_t""no" 1>&4
  733. MINIX=
  734. fi
  735.  
  736. if test "$MINIX" = yes; then
  737.   cat >> confdefs.h <<\EOF
  738. #define _POSIX_SOURCE 1
  739. EOF
  740.  
  741.   cat >> confdefs.h <<\EOF
  742. #define _POSIX_1_SOURCE 2
  743. EOF
  744.  
  745.   cat >> confdefs.h <<\EOF
  746. #define _MINIX 1
  747. EOF
  748.  
  749. fi
  750.  
  751. # If we cannot run a trivial program, we must be cross compiling.
  752. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
  753. if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
  754.   echo $ac_n "(cached) $ac_c" 1>&4
  755. else
  756.   if test "$cross_compiling" = yes; then
  757.   ac_cv_cross=yes
  758. else
  759. cat > conftest.$ac_ext <<EOF
  760. #line 761 "configure"
  761. #include "confdefs.h"
  762. main(){return(0);}
  763. EOF
  764. eval $ac_link
  765. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  766.   ac_cv_c_cross=no
  767. else
  768.   ac_cv_c_cross=yes
  769. fi
  770. fi
  771. rm -fr conftest*
  772. fi
  773. cross_compiling=$ac_cv_c_cross
  774. echo "$ac_t""$ac_cv_c_cross" 1>&4
  775.  
  776. if test $cross_compiling = no; then
  777.   echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&4
  778. if eval "test \"`echo '${'ac_cv_c_char_unsigned'+set}'`\" = set"; then
  779.   echo $ac_n "(cached) $ac_c" 1>&4
  780. else
  781.   if test "$GCC" = yes; then
  782.   # GCC predefines this symbol on systems where it applies.
  783. cat > conftest.$ac_ext <<EOF
  784. #line 785 "configure"
  785. #include "confdefs.h"
  786. #ifdef __CHAR_UNSIGNED__
  787.   yes
  788. #endif
  789.  
  790. EOF
  791. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  792.   egrep "yes" >/dev/null 2>&1; then
  793.   rm -rf conftest*
  794.   ac_cv_c_char_unsigned=yes
  795. else
  796.   rm -rf conftest*
  797.   ac_cv_c_char_unsigned=no
  798. fi
  799. rm -f conftest*
  800.  
  801. else
  802. if test "$cross_compiling" = yes; then
  803.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  804. else
  805. cat > conftest.$ac_ext <<EOF
  806. #line 807 "configure"
  807. #include "confdefs.h"
  808. /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  809. #if !defined(__STDC__) || __STDC__ != 1
  810. #define volatile
  811. #endif
  812. main() {
  813.   volatile char c = 255; exit(c < 0);
  814. }
  815. EOF
  816. eval $ac_link
  817. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  818.   ac_cv_c_char_unsigned=yes
  819. else
  820.   ac_cv_c_char_unsigned=no
  821. fi
  822. fi
  823. rm -fr conftest*
  824. fi
  825. fi
  826. echo "$ac_t""$ac_cv_c_char_unsigned" 1>&4
  827. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  828.   cat >> confdefs.h <<\EOF
  829. #define __CHAR_UNSIGNED__ 1
  830. EOF
  831.  
  832. fi
  833.  
  834. fi
  835. echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&4
  836. if eval "test \"`echo '${'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
  837.   echo $ac_n "(cached) $ac_c" 1>&4
  838. else
  839.   ac_cv_prog_cc_stdc=no
  840. ac_save_CFLAGS="$CFLAGS"
  841. # Don't try gcc -ansi; that turns off useful extensions and
  842. # breaks some systems' header files.
  843. # AIX            -qlanglvl=ansi
  844. # Ultrix and OSF/1    -std1
  845. # HP-UX            -Aa -D_HPUX_SOURCE
  846. # SVR4            -Xc
  847. for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
  848. do
  849.   CFLAGS="$ac_save_CFLAGS $ac_arg"
  850.   cat > conftest.$ac_ext <<EOF
  851. #line 852 "configure"
  852. #include "confdefs.h"
  853. #if !defined(__STDC__) || __STDC__ != 1
  854. choke me
  855. #endif    
  856.  
  857. int main() { return 0; }
  858. int t() {
  859. int test (int i, double x);
  860. struct s1 {int (*f) (int a);};
  861. struct s2 {int (*f) (double a);};
  862. ; return 0; }
  863. EOF
  864. if eval $ac_compile; then
  865.   rm -rf conftest*
  866.   ac_cv_prog_cc_stdc="$ac_arg"; break
  867. fi
  868. rm -f conftest*
  869.  
  870. done
  871. CFLAGS="$ac_save_CFLAGS"
  872.  
  873. fi
  874.  
  875. echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&4
  876. case "x$ac_cv_prog_cc_stdc" in
  877.   x|xno) ;;
  878.   *) CC="$CC $ac_cv_prog_cc_stdc" ;;
  879. esac
  880.  
  881.  
  882. echo $ac_n "checking for function prototypes""... $ac_c" 1>&4
  883. if test "$ac_cv_prog_cc_stdc" != no; then
  884.   echo "$ac_t""yes" 1>&4
  885.   cat >> confdefs.h <<\EOF
  886. #define PROTOTYPES 1
  887. EOF
  888.  
  889.   U= ANSI2KNR=
  890. else
  891.   echo "$ac_t""no" 1>&4
  892.   U=_ ANSI2KNR=ansi2knr
  893. fi
  894.  
  895. echo $ac_n "checking for working const""... $ac_c" 1>&4
  896. if eval "test \"`echo '${'ac_cv_c_const'+set}'`\" = set"; then
  897.   echo $ac_n "(cached) $ac_c" 1>&4
  898. else
  899.   cat > conftest.$ac_ext <<EOF
  900. #line 901 "configure"
  901. #include "confdefs.h"
  902.  
  903. int main() { return 0; }
  904. int t() {
  905.  
  906. /* Ultrix mips cc rejects this.  */
  907. typedef int charset[2]; const charset x;
  908. /* SunOS 4.1.1 cc rejects this.  */
  909. char const *const *ccp;
  910. char **p;
  911. /* NEC SVR4.0.2 mips cc rejects this.  */
  912. struct point {int x, y;};
  913. static struct point const zero;
  914. /* AIX XL C 1.02.0.0 rejects this.
  915.    It does not let you subtract one const X* pointer from another in an arm
  916.    of an if-expression whose if-part is not a constant expression */
  917. const char *g = "string";
  918. ccp = &g + (g ? g-g : 0);
  919. /* HPUX 7.0 cc rejects these. */
  920. ++ccp;
  921. p = (char**) ccp;
  922. ccp = (char const *const *) p;
  923. { /* SCO 3.2v4 cc rejects this.  */
  924.   char *t;
  925.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  926.  
  927.   *t++ = 0;
  928. }
  929. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  930.   int x[] = {25, 17};
  931.   const int *foo = &x[0];
  932.   ++foo;
  933. }
  934. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  935.   typedef const int *iptr;
  936.   iptr p = 0;
  937.   ++p;
  938. }
  939. { /* AIX XL C 1.02.0.0 rejects this saying
  940.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  941.   struct s { int j; const int *ap[3]; };
  942.   struct s *b; b->j = 5;
  943. }
  944. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  945.   const int foo = 10;
  946. }
  947.  
  948. ; return 0; }
  949. EOF
  950. if eval $ac_compile; then
  951.   rm -rf conftest*
  952.   ac_cv_c_const=yes
  953. else
  954.   rm -rf conftest*
  955.   ac_cv_c_const=no
  956. fi
  957. rm -f conftest*
  958.  
  959. fi
  960. echo "$ac_t""$ac_cv_c_const" 1>&4
  961. if test $ac_cv_c_const = no; then
  962.   cat >> confdefs.h <<\EOF
  963. #define const 
  964. EOF
  965.  
  966. fi
  967.  
  968.  
  969. for ac_hdr in limits.h memory.h string.h sys/wait.h unistd.h
  970. do
  971. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  972. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  973. if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  974.   echo $ac_n "(cached) $ac_c" 1>&4
  975. else
  976.   cat > conftest.$ac_ext <<EOF
  977. #line 978 "configure"
  978. #include "confdefs.h"
  979. #include <$ac_hdr>
  980. EOF
  981. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  982. ac_err=`grep -v '^ *+' conftest.out`
  983. if test -z "$ac_err"; then
  984.   rm -rf conftest*
  985.   eval "ac_cv_header_$ac_safe=yes"
  986. else
  987.   echo "$ac_err" >&5
  988.   rm -rf conftest*
  989.   eval "ac_cv_header_$ac_safe=no"
  990. fi
  991. rm -f conftest*
  992. fi
  993. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  994.   echo "$ac_t""yes" 1>&4
  995.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  996.   cat >> confdefs.h <<EOF
  997. #define $ac_tr_hdr 1
  998. EOF
  999.  
  1000. else
  1001.   echo "$ac_t""no" 1>&4
  1002. fi
  1003. done
  1004.  
  1005. ac_header_dirent=no
  1006. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1007. do
  1008. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1009. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&4
  1010. if eval "test \"`echo '${'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1011.   echo $ac_n "(cached) $ac_c" 1>&4
  1012. else
  1013.   cat > conftest.$ac_ext <<EOF
  1014. #line 1015 "configure"
  1015. #include "confdefs.h"
  1016. #include <sys/types.h>
  1017. #include <$ac_hdr>
  1018. int main() { return 0; }
  1019. int t() {
  1020. DIR *dirp = 0;
  1021. ; return 0; }
  1022. EOF
  1023. if eval $ac_compile; then
  1024.   rm -rf conftest*
  1025.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1026. else
  1027.   rm -rf conftest*
  1028.   eval "ac_cv_header_dirent_$ac_safe=no"
  1029. fi
  1030. rm -f conftest*
  1031.  
  1032. fi
  1033. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1034.   echo "$ac_t""yes" 1>&4
  1035.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  1036.   cat >> confdefs.h <<EOF
  1037. #define $ac_tr_hdr 1
  1038. EOF
  1039.  ac_header_dirent=$ac_hdr; break
  1040. else
  1041.   echo "$ac_t""no" 1>&4
  1042. fi
  1043. done
  1044. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1045. if test $ac_header_dirent = dirent.h; then
  1046. echo $ac_n "checking for -ldir""... $ac_c" 1>&4
  1047. if eval "test \"`echo '${'ac_cv_lib_dir'+set}'`\" = set"; then
  1048.   echo $ac_n "(cached) $ac_c" 1>&4
  1049. else
  1050.   ac_save_LIBS="$LIBS"
  1051. LIBS="$LIBS -ldir "
  1052. cat > conftest.$ac_ext <<EOF
  1053. #line 1054 "configure"
  1054. #include "confdefs.h"
  1055.  
  1056. int main() { return 0; }
  1057. int t() {
  1058. opendir()
  1059. ; return 0; }
  1060. EOF
  1061. if eval $ac_link; then
  1062.   rm -rf conftest*
  1063.   eval "ac_cv_lib_dir=yes"
  1064. else
  1065.   rm -rf conftest*
  1066.   eval "ac_cv_lib_dir=no"
  1067. fi
  1068. rm -f conftest*
  1069. LIBS="$ac_save_LIBS"
  1070.  
  1071. fi
  1072. if eval "test \"`echo '$ac_cv_lib_'dir`\" = yes"; then
  1073.   echo "$ac_t""yes" 1>&4
  1074.   LIBS="$LIBS -ldir"
  1075. else
  1076.   echo "$ac_t""no" 1>&4
  1077. fi
  1078.  
  1079. else
  1080. echo $ac_n "checking for -lx""... $ac_c" 1>&4
  1081. if eval "test \"`echo '${'ac_cv_lib_x'+set}'`\" = set"; then
  1082.   echo $ac_n "(cached) $ac_c" 1>&4
  1083. else
  1084.   ac_save_LIBS="$LIBS"
  1085. LIBS="$LIBS -lx "
  1086. cat > conftest.$ac_ext <<EOF
  1087. #line 1088 "configure"
  1088. #include "confdefs.h"
  1089.  
  1090. int main() { return 0; }
  1091. int t() {
  1092. opendir()
  1093. ; return 0; }
  1094. EOF
  1095. if eval $ac_link; then
  1096.   rm -rf conftest*
  1097.   eval "ac_cv_lib_x=yes"
  1098. else
  1099.   rm -rf conftest*
  1100.   eval "ac_cv_lib_x=no"
  1101. fi
  1102. rm -f conftest*
  1103. LIBS="$ac_save_LIBS"
  1104.  
  1105. fi
  1106. if eval "test \"`echo '$ac_cv_lib_'x`\" = yes"; then
  1107.   echo "$ac_t""yes" 1>&4
  1108.   LIBS="$LIBS -lx"
  1109. else
  1110.   echo "$ac_t""no" 1>&4
  1111. fi
  1112.  
  1113. fi
  1114.  
  1115. echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&4
  1116. if eval "test \"`echo '${'ac_cv_header_stat_broken'+set}'`\" = set"; then
  1117.   echo $ac_n "(cached) $ac_c" 1>&4
  1118. else
  1119.   cat > conftest.$ac_ext <<EOF
  1120. #line 1121 "configure"
  1121. #include "confdefs.h"
  1122. #include <sys/types.h>
  1123. #include <sys/stat.h>
  1124. #ifdef S_ISBLK
  1125. # if S_ISBLK (S_IFDIR)
  1126. You lose.
  1127. # endif
  1128. # ifdef S_IFCHR
  1129. #  if S_ISBLK (S_IFCHR)
  1130. You lose.
  1131. #  endif
  1132. # endif
  1133. #endif
  1134.  
  1135. #ifdef S_ISLNK
  1136. # if S_ISLNK (S_IFREG)
  1137. You lose.
  1138. # endif
  1139. #endif
  1140.  
  1141. #ifdef S_ISSOCK
  1142. # if S_ISSOCK (S_IFREG)
  1143. You lose.
  1144. # endif
  1145. #endif
  1146.  
  1147. EOF
  1148. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1149.   egrep "You lose" >/dev/null 2>&1; then
  1150.   rm -rf conftest*
  1151.   ac_cv_header_stat_broken=yes
  1152. else
  1153.   rm -rf conftest*
  1154.   ac_cv_header_stat_broken=no
  1155. fi
  1156. rm -f conftest*
  1157.  
  1158. fi
  1159. echo "$ac_t""$ac_cv_header_stat_broken" 1>&4
  1160. if test $ac_cv_header_stat_broken = yes; then
  1161.   cat >> confdefs.h <<\EOF
  1162. #define STAT_MACROS_BROKEN 1
  1163. EOF
  1164.  
  1165. fi
  1166.  
  1167. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4
  1168. if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then
  1169.   echo $ac_n "(cached) $ac_c" 1>&4
  1170. else
  1171.   cat > conftest.$ac_ext <<EOF
  1172. #line 1173 "configure"
  1173. #include "confdefs.h"
  1174. #include <stdlib.h>
  1175. #include <stdarg.h>
  1176. #include <string.h>
  1177. #include <float.h>
  1178. EOF
  1179. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1180. ac_err=`grep -v '^ *+' conftest.out`
  1181. if test -z "$ac_err"; then
  1182.   rm -rf conftest*
  1183.   ac_cv_header_stdc=yes
  1184. else
  1185.   echo "$ac_err" >&5
  1186.   rm -rf conftest*
  1187.   ac_cv_header_stdc=no
  1188. fi
  1189. rm -f conftest*
  1190.  
  1191. if test $ac_cv_header_stdc = yes; then
  1192.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1193. cat > conftest.$ac_ext <<EOF
  1194. #line 1195 "configure"
  1195. #include "confdefs.h"
  1196. #include <string.h>
  1197. EOF
  1198. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1199.   egrep "memchr" >/dev/null 2>&1; then
  1200.   :
  1201. else
  1202.   rm -rf conftest*
  1203.   ac_cv_header_stdc=no
  1204. fi
  1205. rm -f conftest*
  1206.  
  1207. fi
  1208.  
  1209. if test $ac_cv_header_stdc = yes; then
  1210.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1211. cat > conftest.$ac_ext <<EOF
  1212. #line 1213 "configure"
  1213. #include "confdefs.h"
  1214. #include <stdlib.h>
  1215. EOF
  1216. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1217.   egrep "free" >/dev/null 2>&1; then
  1218.   :
  1219. else
  1220.   rm -rf conftest*
  1221.   ac_cv_header_stdc=no
  1222. fi
  1223. rm -f conftest*
  1224.  
  1225. fi
  1226.  
  1227. if test $ac_cv_header_stdc = yes; then
  1228.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1229. if test "$cross_compiling" = yes; then
  1230.   ac_cv_header_stdc=no
  1231. else
  1232. cat > conftest.$ac_ext <<EOF
  1233. #line 1234 "configure"
  1234. #include "confdefs.h"
  1235. #include <ctype.h>
  1236. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1237. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1238. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1239. int main () { int i; for (i = 0; i < 256; i++)
  1240. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1241. exit (0); }
  1242.  
  1243. EOF
  1244. eval $ac_link
  1245. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1246.   :
  1247. else
  1248.   ac_cv_header_stdc=no
  1249. fi
  1250. fi
  1251. rm -fr conftest*
  1252. fi
  1253. fi
  1254. echo "$ac_t""$ac_cv_header_stdc" 1>&4
  1255. if test $ac_cv_header_stdc = yes; then
  1256.   cat >> confdefs.h <<\EOF
  1257. #define STDC_HEADERS 1
  1258. EOF
  1259.  
  1260. fi
  1261.  
  1262. echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&4
  1263. if eval "test \"`echo '${'ac_cv_struct_tm'+set}'`\" = set"; then
  1264.   echo $ac_n "(cached) $ac_c" 1>&4
  1265. else
  1266.   cat > conftest.$ac_ext <<EOF
  1267. #line 1268 "configure"
  1268. #include "confdefs.h"
  1269. #include <sys/types.h>
  1270. #include <time.h>
  1271. int main() { return 0; }
  1272. int t() {
  1273. struct tm *tp; tp->tm_sec;
  1274. ; return 0; }
  1275. EOF
  1276. if eval $ac_compile; then
  1277.   rm -rf conftest*
  1278.   ac_cv_struct_tm=time.h
  1279. else
  1280.   rm -rf conftest*
  1281.   ac_cv_struct_tm=sys/time.h
  1282. fi
  1283. rm -f conftest*
  1284.  
  1285. fi
  1286. echo "$ac_t""$ac_cv_struct_tm" 1>&4
  1287. if test $ac_cv_struct_tm = sys/time.h; then
  1288.   cat >> confdefs.h <<\EOF
  1289. #define TM_IN_SYS_TIME 1
  1290. EOF
  1291.  
  1292. fi
  1293.  
  1294. echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&4
  1295. if eval "test \"`echo '${'ac_cv_struct_tm_zone'+set}'`\" = set"; then
  1296.   echo $ac_n "(cached) $ac_c" 1>&4
  1297. else
  1298.   cat > conftest.$ac_ext <<EOF
  1299. #line 1300 "configure"
  1300. #include "confdefs.h"
  1301. #include <sys/types.h>
  1302. #include <$ac_cv_struct_tm>
  1303. int main() { return 0; }
  1304. int t() {
  1305. struct tm tm; tm.tm_zone;
  1306. ; return 0; }
  1307. EOF
  1308. if eval $ac_compile; then
  1309.   rm -rf conftest*
  1310.   ac_cv_struct_tm_zone=yes
  1311. else
  1312.   rm -rf conftest*
  1313.   ac_cv_struct_tm_zone=no
  1314. fi
  1315. rm -f conftest*
  1316.  
  1317. fi
  1318. echo "$ac_t""$ac_cv_struct_tm_zone" 1>&4
  1319. if test "$ac_cv_struct_tm_zone" = yes; then
  1320.   cat >> confdefs.h <<\EOF
  1321. #define HAVE_TM_ZONE 1
  1322. EOF
  1323.  
  1324. else
  1325.   echo $ac_n "checking for tzname""... $ac_c" 1>&4
  1326. if eval "test \"`echo '${'ac_cv_var_tzname'+set}'`\" = set"; then
  1327.   echo $ac_n "(cached) $ac_c" 1>&4
  1328. else
  1329.   cat > conftest.$ac_ext <<EOF
  1330. #line 1331 "configure"
  1331. #include "confdefs.h"
  1332. #include <time.h>
  1333. #ifndef tzname /* For SGI.  */
  1334. extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
  1335. #endif
  1336. int main() { return 0; }
  1337. int t() {
  1338. atoi(*tzname);
  1339. ; return 0; }
  1340. EOF
  1341. if eval $ac_link; then
  1342.   rm -rf conftest*
  1343.   ac_cv_var_tzname=yes
  1344. else
  1345.   rm -rf conftest*
  1346.   ac_cv_var_tzname=no
  1347. fi
  1348. rm -f conftest*
  1349.  
  1350. fi
  1351.   echo "$ac_t""$ac_cv_var_tzname" 1>&4
  1352.   if test $ac_cv_var_tzname = yes; then
  1353.     cat >> confdefs.h <<\EOF
  1354. #define HAVE_TZNAME 1
  1355. EOF
  1356.  
  1357.   fi
  1358. fi
  1359.  
  1360. echo $ac_n "checking for size_t""... $ac_c" 1>&4
  1361. if eval "test \"`echo '${'ac_cv_type_size_t'+set}'`\" = set"; then
  1362.   echo $ac_n "(cached) $ac_c" 1>&4
  1363. else
  1364.   cat > conftest.$ac_ext <<EOF
  1365. #line 1366 "configure"
  1366. #include "confdefs.h"
  1367. #include <sys/types.h>
  1368. #if STDC_HEADERS
  1369. #include <stdlib.h>
  1370. #endif
  1371. EOF
  1372. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1373.   egrep "size_t" >/dev/null 2>&1; then
  1374.   rm -rf conftest*
  1375.   ac_cv_type_size_t=yes
  1376. else
  1377.   rm -rf conftest*
  1378.   ac_cv_type_size_t=no
  1379. fi
  1380. rm -f conftest*
  1381.  
  1382. fi
  1383. echo "$ac_t""$ac_cv_type_size_t" 1>&4
  1384. if test $ac_cv_type_size_t = no; then
  1385.   cat >> confdefs.h <<\EOF
  1386. #define size_t unsigned
  1387. EOF
  1388.  
  1389. fi
  1390.  
  1391.  
  1392. for ac_func in basename fchmod getcwd memcpy strchr strerror uname
  1393. do
  1394. echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  1395. if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1396.   echo $ac_n "(cached) $ac_c" 1>&4
  1397. else
  1398.   cat > conftest.$ac_ext <<EOF
  1399. #line 1400 "configure"
  1400. #include "confdefs.h"
  1401. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1402. /* Override any gcc2 internal prototype to avoid an error.  */
  1403. char $ac_func(); 
  1404.  
  1405. int main() { return 0; }
  1406. int t() {
  1407.  
  1408. /* The GNU C library defines this for functions which it implements
  1409.     to always fail with ENOSYS.  Some functions are actually named
  1410.     something starting with __ and the normal name is an alias.  */
  1411. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1412. choke me
  1413. #else
  1414. $ac_func();
  1415. #endif
  1416.  
  1417. ; return 0; }
  1418. EOF
  1419. if eval $ac_link; then
  1420.   rm -rf conftest*
  1421.   eval "ac_cv_func_$ac_func=yes"
  1422. else
  1423.   rm -rf conftest*
  1424.   eval "ac_cv_func_$ac_func=no"
  1425. fi
  1426. rm -f conftest*
  1427.  
  1428. fi
  1429. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1430.   echo "$ac_t""yes" 1>&4
  1431.     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1432.   cat >> confdefs.h <<EOF
  1433. #define $ac_tr_func 1
  1434. EOF
  1435.  
  1436. else
  1437.   echo "$ac_t""no" 1>&4
  1438. fi
  1439. done
  1440.  
  1441. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1442. # for constant arguments.  Useless!
  1443. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&4
  1444. if eval "test \"`echo '${'ac_cv_header_alloca_h'+set}'`\" = set"; then
  1445.   echo $ac_n "(cached) $ac_c" 1>&4
  1446. else
  1447.   cat > conftest.$ac_ext <<EOF
  1448. #line 1449 "configure"
  1449. #include "confdefs.h"
  1450. #include <alloca.h>
  1451. int main() { return 0; }
  1452. int t() {
  1453. char *p = alloca(2 * sizeof(int));
  1454. ; return 0; }
  1455. EOF
  1456. if eval $ac_link; then
  1457.   rm -rf conftest*
  1458.   ac_cv_header_alloca_h=yes
  1459. else
  1460.   rm -rf conftest*
  1461.   ac_cv_header_alloca_h=no
  1462. fi
  1463. rm -f conftest*
  1464.  
  1465. fi
  1466. echo "$ac_t""$ac_cv_header_alloca_h" 1>&4
  1467. if test $ac_cv_header_alloca_h = yes; then
  1468.   cat >> confdefs.h <<\EOF
  1469. #define HAVE_ALLOCA_H 1
  1470. EOF
  1471.  
  1472. fi
  1473.  
  1474. echo $ac_n "checking for alloca""... $ac_c" 1>&4
  1475. if eval "test \"`echo '${'ac_cv_func_alloca'+set}'`\" = set"; then
  1476.   echo $ac_n "(cached) $ac_c" 1>&4
  1477. else
  1478.   cat > conftest.$ac_ext <<EOF
  1479. #line 1480 "configure"
  1480. #include "confdefs.h"
  1481.  
  1482. #ifdef __GNUC__
  1483. # define alloca __builtin_alloca
  1484. #else
  1485. # if HAVE_ALLOCA_H
  1486. #  include <alloca.h>
  1487. # else
  1488. #  ifdef _AIX
  1489.  #pragma alloca
  1490. #  else
  1491. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  1492. char *alloca ();
  1493. #   endif
  1494. #  endif
  1495. # endif
  1496. #endif
  1497.  
  1498. int main() { return 0; }
  1499. int t() {
  1500. char *p = (char *) alloca(1);
  1501. ; return 0; }
  1502. EOF
  1503. if eval $ac_link; then
  1504.   rm -rf conftest*
  1505.   ac_cv_func_alloca=yes
  1506. else
  1507.   rm -rf conftest*
  1508.   ac_cv_func_alloca=no
  1509. fi
  1510. rm -f conftest*
  1511.  
  1512. fi
  1513. echo "$ac_t""$ac_cv_func_alloca" 1>&4
  1514. if test $ac_cv_func_alloca = yes; then
  1515.   cat >> confdefs.h <<\EOF
  1516. #define HAVE_ALLOCA 1
  1517. EOF
  1518.  
  1519. fi
  1520.  
  1521. if test $ac_cv_func_alloca = no; then
  1522.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  1523.   # that cause trouble.  Some versions do not even contain alloca or
  1524.   # contain a buggy version.  If you still want to use their alloca,
  1525.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  1526.   ALLOCA=alloca.o
  1527.   cat >> confdefs.h <<\EOF
  1528. #define C_ALLOCA 1
  1529. EOF
  1530.  
  1531.  
  1532. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&4
  1533. if eval "test \"`echo '${'ac_cv_os_cray'+set}'`\" = set"; then
  1534.   echo $ac_n "(cached) $ac_c" 1>&4
  1535. else
  1536.   cat > conftest.$ac_ext <<EOF
  1537. #line 1538 "configure"
  1538. #include "confdefs.h"
  1539. #if defined(CRAY) && ! defined(CRAY2)
  1540. webecray
  1541. #else
  1542. wenotbecray
  1543. #endif
  1544.  
  1545. EOF
  1546. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1547.   egrep "webecray" >/dev/null 2>&1; then
  1548.   rm -rf conftest*
  1549.   ac_cv_os_cray=yes
  1550. else
  1551.   rm -rf conftest*
  1552.   ac_cv_os_cray=no
  1553. fi
  1554. rm -f conftest*
  1555.  
  1556. fi
  1557. echo "$ac_t""$ac_cv_os_cray" 1>&4
  1558. if test $ac_cv_os_cray = yes; then
  1559. echo $ac_n "checking for _getb67""... $ac_c" 1>&4
  1560. if eval "test \"`echo '${'ac_cv_func__getb67'+set}'`\" = set"; then
  1561.   echo $ac_n "(cached) $ac_c" 1>&4
  1562. else
  1563.   cat > conftest.$ac_ext <<EOF
  1564. #line 1565 "configure"
  1565. #include "confdefs.h"
  1566. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1567. /* Override any gcc2 internal prototype to avoid an error.  */
  1568. char _getb67(); 
  1569.  
  1570. int main() { return 0; }
  1571. int t() {
  1572.  
  1573. /* The GNU C library defines this for functions which it implements
  1574.     to always fail with ENOSYS.  Some functions are actually named
  1575.     something starting with __ and the normal name is an alias.  */
  1576. #if defined (__stub__getb67) || defined (__stub____getb67)
  1577. choke me
  1578. #else
  1579. _getb67();
  1580. #endif
  1581.  
  1582. ; return 0; }
  1583. EOF
  1584. if eval $ac_link; then
  1585.   rm -rf conftest*
  1586.   eval "ac_cv_func__getb67=yes"
  1587. else
  1588.   rm -rf conftest*
  1589.   eval "ac_cv_func__getb67=no"
  1590. fi
  1591. rm -f conftest*
  1592.  
  1593. fi
  1594. if eval "test \"`echo '$ac_cv_func_'_getb67`\" = yes"; then
  1595.   echo "$ac_t""yes" 1>&4
  1596.   cat >> confdefs.h <<\EOF
  1597. #define CRAY_STACKSEG_END _getb67
  1598. EOF
  1599.  
  1600. else
  1601.   echo "$ac_t""no" 1>&4
  1602. echo $ac_n "checking for GETB67""... $ac_c" 1>&4
  1603. if eval "test \"`echo '${'ac_cv_func_GETB67'+set}'`\" = set"; then
  1604.   echo $ac_n "(cached) $ac_c" 1>&4
  1605. else
  1606.   cat > conftest.$ac_ext <<EOF
  1607. #line 1608 "configure"
  1608. #include "confdefs.h"
  1609. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1610. /* Override any gcc2 internal prototype to avoid an error.  */
  1611. char GETB67(); 
  1612.  
  1613. int main() { return 0; }
  1614. int t() {
  1615.  
  1616. /* The GNU C library defines this for functions which it implements
  1617.     to always fail with ENOSYS.  Some functions are actually named
  1618.     something starting with __ and the normal name is an alias.  */
  1619. #if defined (__stub_GETB67) || defined (__stub___GETB67)
  1620. choke me
  1621. #else
  1622. GETB67();
  1623. #endif
  1624.  
  1625. ; return 0; }
  1626. EOF
  1627. if eval $ac_link; then
  1628.   rm -rf conftest*
  1629.   eval "ac_cv_func_GETB67=yes"
  1630. else
  1631.   rm -rf conftest*
  1632.   eval "ac_cv_func_GETB67=no"
  1633. fi
  1634. rm -f conftest*
  1635.  
  1636. fi
  1637. if eval "test \"`echo '$ac_cv_func_'GETB67`\" = yes"; then
  1638.   echo "$ac_t""yes" 1>&4
  1639.   cat >> confdefs.h <<\EOF
  1640. #define CRAY_STACKSEG_END GETB67
  1641. EOF
  1642.  
  1643. else
  1644.   echo "$ac_t""no" 1>&4
  1645. echo $ac_n "checking for getb67""... $ac_c" 1>&4
  1646. if eval "test \"`echo '${'ac_cv_func_getb67'+set}'`\" = set"; then
  1647.   echo $ac_n "(cached) $ac_c" 1>&4
  1648. else
  1649.   cat > conftest.$ac_ext <<EOF
  1650. #line 1651 "configure"
  1651. #include "confdefs.h"
  1652. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1653. /* Override any gcc2 internal prototype to avoid an error.  */
  1654. char getb67(); 
  1655.  
  1656. int main() { return 0; }
  1657. int t() {
  1658.  
  1659. /* The GNU C library defines this for functions which it implements
  1660.     to always fail with ENOSYS.  Some functions are actually named
  1661.     something starting with __ and the normal name is an alias.  */
  1662. #if defined (__stub_getb67) || defined (__stub___getb67)
  1663. choke me
  1664. #else
  1665. getb67();
  1666. #endif
  1667.  
  1668. ; return 0; }
  1669. EOF
  1670. if eval $ac_link; then
  1671.   rm -rf conftest*
  1672.   eval "ac_cv_func_getb67=yes"
  1673. else
  1674.   rm -rf conftest*
  1675.   eval "ac_cv_func_getb67=no"
  1676. fi
  1677. rm -f conftest*
  1678.  
  1679. fi
  1680. if eval "test \"`echo '$ac_cv_func_'getb67`\" = yes"; then
  1681.   echo "$ac_t""yes" 1>&4
  1682.   cat >> confdefs.h <<\EOF
  1683. #define CRAY_STACKSEG_END getb67
  1684. EOF
  1685.  
  1686. else
  1687.   echo "$ac_t""no" 1>&4
  1688. fi
  1689.  
  1690. fi
  1691.  
  1692. fi
  1693.  
  1694. fi
  1695.  
  1696. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&4
  1697. if eval "test \"`echo '${'ac_cv_c_stack_direction'+set}'`\" = set"; then
  1698.   echo $ac_n "(cached) $ac_c" 1>&4
  1699. else
  1700.   if test "$cross_compiling" = yes; then
  1701.   ac_cv_c_stack_direction=0
  1702. else
  1703. cat > conftest.$ac_ext <<EOF
  1704. #line 1705 "configure"
  1705. #include "confdefs.h"
  1706. find_stack_direction ()
  1707. {
  1708.   static char *addr = 0;
  1709.   auto char dummy;
  1710.   if (addr == 0)
  1711.     {
  1712.       addr = &dummy;
  1713.       return find_stack_direction ();
  1714.     }
  1715.   else
  1716.     return (&dummy > addr) ? 1 : -1;
  1717. }
  1718. main ()
  1719. {
  1720.   exit (find_stack_direction() < 0);
  1721. }
  1722. EOF
  1723. eval $ac_link
  1724. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1725.   ac_cv_c_stack_direction=1
  1726. else
  1727.   ac_cv_c_stack_direction=-1
  1728. fi
  1729. fi
  1730. rm -fr conftest*
  1731. fi
  1732. echo "$ac_t""$ac_cv_c_stack_direction" 1>&4
  1733. cat >> confdefs.h <<EOF
  1734. #define STACK_DIRECTION $ac_cv_c_stack_direction
  1735. EOF
  1736.  
  1737. fi
  1738.  
  1739. echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&4
  1740. if eval "test \"`echo '${'ac_cv_func_closedir_void'+set}'`\" = set"; then
  1741.   echo $ac_n "(cached) $ac_c" 1>&4
  1742. else
  1743.   if test "$cross_compiling" = yes; then
  1744.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1745. else
  1746. cat > conftest.$ac_ext <<EOF
  1747. #line 1748 "configure"
  1748. #include "confdefs.h"
  1749. #include <sys/types.h>
  1750. #include <$ac_header_dirent>
  1751. int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  1752. EOF
  1753. eval $ac_link
  1754. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1755.   ac_cv_func_closedir_void=no
  1756. else
  1757.   ac_cv_func_closedir_void=yes
  1758. fi
  1759. fi
  1760. rm -fr conftest*
  1761. fi
  1762. echo "$ac_t""$ac_cv_func_closedir_void" 1>&4
  1763. if test $ac_cv_func_closedir_void = yes; then
  1764.   cat >> confdefs.h <<\EOF
  1765. #define CLOSEDIR_VOID 1
  1766. EOF
  1767.  
  1768. fi
  1769.  
  1770. # strftime is in -lintl on SCO UNIX.
  1771. echo $ac_n "checking for -lintl""... $ac_c" 1>&4
  1772. if eval "test \"`echo '${'ac_cv_lib_intl'+set}'`\" = set"; then
  1773.   echo $ac_n "(cached) $ac_c" 1>&4
  1774. else
  1775.   ac_save_LIBS="$LIBS"
  1776. LIBS="$LIBS -lintl "
  1777. cat > conftest.$ac_ext <<EOF
  1778. #line 1779 "configure"
  1779. #include "confdefs.h"
  1780.  
  1781. int main() { return 0; }
  1782. int t() {
  1783. strftime()
  1784. ; return 0; }
  1785. EOF
  1786. if eval $ac_link; then
  1787.   rm -rf conftest*
  1788.   eval "ac_cv_lib_intl=yes"
  1789. else
  1790.   rm -rf conftest*
  1791.   eval "ac_cv_lib_intl=no"
  1792. fi
  1793. rm -f conftest*
  1794. LIBS="$ac_save_LIBS"
  1795.  
  1796. fi
  1797. if eval "test \"`echo '$ac_cv_lib_'intl`\" = yes"; then
  1798.   echo "$ac_t""yes" 1>&4
  1799.   LIBS="$LIBS -lintl"
  1800. else
  1801.   echo "$ac_t""no" 1>&4
  1802. fi
  1803.  
  1804. echo $ac_n "checking for strftime""... $ac_c" 1>&4
  1805. if eval "test \"`echo '${'ac_cv_func_strftime'+set}'`\" = set"; then
  1806.   echo $ac_n "(cached) $ac_c" 1>&4
  1807. else
  1808.   cat > conftest.$ac_ext <<EOF
  1809. #line 1810 "configure"
  1810. #include "confdefs.h"
  1811. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1812. /* Override any gcc2 internal prototype to avoid an error.  */
  1813. char strftime(); 
  1814.  
  1815. int main() { return 0; }
  1816. int t() {
  1817.  
  1818. /* The GNU C library defines this for functions which it implements
  1819.     to always fail with ENOSYS.  Some functions are actually named
  1820.     something starting with __ and the normal name is an alias.  */
  1821. #if defined (__stub_strftime) || defined (__stub___strftime)
  1822. choke me
  1823. #else
  1824. strftime();
  1825. #endif
  1826.  
  1827. ; return 0; }
  1828. EOF
  1829. if eval $ac_link; then
  1830.   rm -rf conftest*
  1831.   eval "ac_cv_func_strftime=yes"
  1832. else
  1833.   rm -rf conftest*
  1834.   eval "ac_cv_func_strftime=no"
  1835. fi
  1836. rm -f conftest*
  1837.  
  1838. fi
  1839. if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
  1840.   echo "$ac_t""yes" 1>&4
  1841.   cat >> confdefs.h <<\EOF
  1842. #define HAVE_STRFTIME 1
  1843. EOF
  1844.  
  1845. else
  1846.   echo "$ac_t""no" 1>&4
  1847. fi
  1848.  
  1849. echo $ac_n "checking for vprintf""... $ac_c" 1>&4
  1850. if eval "test \"`echo '${'ac_cv_func_vprintf'+set}'`\" = set"; then
  1851.   echo $ac_n "(cached) $ac_c" 1>&4
  1852. else
  1853.   cat > conftest.$ac_ext <<EOF
  1854. #line 1855 "configure"
  1855. #include "confdefs.h"
  1856. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1857. /* Override any gcc2 internal prototype to avoid an error.  */
  1858. char vprintf(); 
  1859.  
  1860. int main() { return 0; }
  1861. int t() {
  1862.  
  1863. /* The GNU C library defines this for functions which it implements
  1864.     to always fail with ENOSYS.  Some functions are actually named
  1865.     something starting with __ and the normal name is an alias.  */
  1866. #if defined (__stub_vprintf) || defined (__stub___vprintf)
  1867. choke me
  1868. #else
  1869. vprintf();
  1870. #endif
  1871.  
  1872. ; return 0; }
  1873. EOF
  1874. if eval $ac_link; then
  1875.   rm -rf conftest*
  1876.   eval "ac_cv_func_vprintf=yes"
  1877. else
  1878.   rm -rf conftest*
  1879.   eval "ac_cv_func_vprintf=no"
  1880. fi
  1881. rm -f conftest*
  1882.  
  1883. fi
  1884. if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  1885.   echo "$ac_t""yes" 1>&4
  1886.   cat >> confdefs.h <<\EOF
  1887. #define HAVE_VPRINTF 1
  1888. EOF
  1889.  
  1890. else
  1891.   echo "$ac_t""no" 1>&4
  1892. fi
  1893.  
  1894. if test "$ac_cv_func_vprintf" != yes; then
  1895. echo $ac_n "checking for _doprnt""... $ac_c" 1>&4
  1896. if eval "test \"`echo '${'ac_cv_func__doprnt'+set}'`\" = set"; then
  1897.   echo $ac_n "(cached) $ac_c" 1>&4
  1898. else
  1899.   cat > conftest.$ac_ext <<EOF
  1900. #line 1901 "configure"
  1901. #include "confdefs.h"
  1902. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1903. /* Override any gcc2 internal prototype to avoid an error.  */
  1904. char _doprnt(); 
  1905.  
  1906. int main() { return 0; }
  1907. int t() {
  1908.  
  1909. /* The GNU C library defines this for functions which it implements
  1910.     to always fail with ENOSYS.  Some functions are actually named
  1911.     something starting with __ and the normal name is an alias.  */
  1912. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  1913. choke me
  1914. #else
  1915. _doprnt();
  1916. #endif
  1917.  
  1918. ; return 0; }
  1919. EOF
  1920. if eval $ac_link; then
  1921.   rm -rf conftest*
  1922.   eval "ac_cv_func__doprnt=yes"
  1923. else
  1924.   rm -rf conftest*
  1925.   eval "ac_cv_func__doprnt=no"
  1926. fi
  1927. rm -f conftest*
  1928.  
  1929. fi
  1930. if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  1931.   echo "$ac_t""yes" 1>&4
  1932.   cat >> confdefs.h <<\EOF
  1933. #define HAVE_DOPRNT 1
  1934. EOF
  1935.  
  1936. else
  1937.   echo "$ac_t""no" 1>&4
  1938. fi
  1939.  
  1940. fi
  1941.  
  1942. for ac_func in memset mktime strftime
  1943. do
  1944. echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  1945. if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1946.   echo $ac_n "(cached) $ac_c" 1>&4
  1947. else
  1948.   cat > conftest.$ac_ext <<EOF
  1949. #line 1950 "configure"
  1950. #include "confdefs.h"
  1951. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1952. /* Override any gcc2 internal prototype to avoid an error.  */
  1953. char $ac_func(); 
  1954.  
  1955. int main() { return 0; }
  1956. int t() {
  1957.  
  1958. /* The GNU C library defines this for functions which it implements
  1959.     to always fail with ENOSYS.  Some functions are actually named
  1960.     something starting with __ and the normal name is an alias.  */
  1961. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1962. choke me
  1963. #else
  1964. $ac_func();
  1965. #endif
  1966.  
  1967. ; return 0; }
  1968. EOF
  1969. if eval $ac_link; then
  1970.   rm -rf conftest*
  1971.   eval "ac_cv_func_$ac_func=yes"
  1972. else
  1973.   rm -rf conftest*
  1974.   eval "ac_cv_func_$ac_func=no"
  1975. fi
  1976. rm -f conftest*
  1977.  
  1978. fi
  1979. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1980.   echo "$ac_t""yes" 1>&4
  1981.   :
  1982. else
  1983.   echo "$ac_t""no" 1>&4
  1984. LIBOBJS="$LIBOBJS ${ac_func}.o"
  1985. fi
  1986.  
  1987. done
  1988.  
  1989. test "$ac_cv_func_basename" = yes || LIBOBJS="$LIBOBJS basename.o"
  1990.  
  1991. echo $ac_n "checking for /etc/systemid""... $ac_c" 1>&4
  1992. if test -f /etc/systemid; then
  1993.   echo "$ac_t""yes" 1>&4
  1994.   cat >> confdefs.h <<\EOF
  1995. #define HAVE_ETC_SYSTEMID 1
  1996. EOF
  1997.  
  1998. else
  1999.   echo "$ac_t""no" 1>&4
  2000. fi
  2001.  
  2002. echo $ac_n "checking if uuencode and uudecode are wanted""... $ac_c" 1>&4
  2003. # Check whether --enable-uucode or --disable-uucode was given.
  2004. enableval="$enable_uucode"
  2005. if test -n "$enableval"; then
  2006.   if test "$enableval" = yes; then
  2007.   echo "$ac_t""yes" 1>&4
  2008.   PROGRAMS="$PROGRAMS uudecode uuencode"
  2009. else
  2010.   echo "$ac_t""no" 1>&4
  2011. fi
  2012. else
  2013.   
  2014.   echo "$ac_t""yes" 1>&4
  2015.   PROGRAMS="$PROGRAMS uudecode uuencode"
  2016.  
  2017. fi
  2018.  
  2019.  
  2020. echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&4
  2021. # Check whether --with-dmalloc or --without-dmalloc was given.
  2022. withval="$with_dmalloc"
  2023. if test -n "$withval"; then
  2024.   if test "$withval" = yes; then
  2025.   echo "$ac_t""yes" 1>&4
  2026.   cat >> confdefs.h <<\EOF
  2027. #define WITH_DMALLOC 1
  2028. EOF
  2029.  
  2030.   LIBS="$LIBS -ldmalloc"
  2031.   LDFLAGS="$LDFLAGS -g"
  2032. else
  2033.   echo "$ac_t""no" 1>&4
  2034. fi
  2035. else
  2036.   echo "$ac_t""no" 1>&4
  2037. fi
  2038.  
  2039.  
  2040. trap '' 1 2 15
  2041. if test -w $cache_file; then
  2042. echo "updating cache $cache_file"
  2043. cat > $cache_file <<\EOF
  2044. # This file is a shell script that caches the results of configure
  2045. # tests run on this system so they can be shared between configure
  2046. # scripts and configure runs.  It is not useful on other systems.
  2047. # If it contains results you don't want to keep, you may remove or edit it.
  2048. #
  2049. # By default, configure uses ./config.cache as the cache file,
  2050. # creating it if it does not exist already.  You can give configure
  2051. # the --cache-file=FILE option to use a different cache file; that is
  2052. # what configure does when it calls configure scripts in
  2053. # subdirectories, so they share the cache.
  2054. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2055. # config.status only pays attention to the cache file if you give it the
  2056. # --recheck option to rerun configure.
  2057. #
  2058. EOF
  2059. # Ultrix sh set writes to stderr and can't be redirected directly.
  2060. (set) 2>&1 |
  2061.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
  2062.   >> $cache_file
  2063. else
  2064. echo "not updating unwritable cache $cache_file"
  2065. fi
  2066.  
  2067. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  2068.  
  2069. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2070. # Let make expand exec_prefix.
  2071. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2072.  
  2073. # Any assignment to VPATH causes Sun make to only execute
  2074. # the first set of double-colon rules, so remove it if not needed.
  2075. # If there is a colon in the path, we need to keep it.
  2076. if test "x$srcdir" = x.; then
  2077.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2078. fi
  2079.  
  2080. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2081.  
  2082. DEFS=-DHAVE_CONFIG_H
  2083.  
  2084. # Without the "./", some shells look in PATH for config.status.
  2085. : ${CONFIG_STATUS=./config.status}
  2086.  
  2087. echo creating $CONFIG_STATUS
  2088. rm -f $CONFIG_STATUS
  2089. cat > $CONFIG_STATUS <<EOF
  2090. #!/bin/sh
  2091. # Generated automatically by configure.
  2092. # Run this file to recreate the current configuration.
  2093. # This directory was configured as follows,
  2094. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2095. #
  2096. # $0 $ac_configure_args
  2097. #
  2098. # Compiler output produced by configure, useful for debugging
  2099. # configure, is in ./config.log if it exists.
  2100.  
  2101. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2102. for ac_option
  2103. do
  2104.   case "\$ac_option" in
  2105.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2106.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2107.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2108.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2109.     echo "$CONFIG_STATUS generated by autoconf version 2.1"
  2110.     exit 0 ;;
  2111.   -help | --help | --hel | --he | --h)
  2112.     echo "\$ac_cs_usage"; exit 0 ;;
  2113.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2114.   esac
  2115. done
  2116.  
  2117. ac_given_srcdir=$srcdir
  2118. ac_given_INSTALL="$INSTALL"
  2119.  
  2120. trap 'rm -fr Makefile config.h conftest*; exit 1' 1 2 15
  2121.  
  2122. # Protect against being on the right side of a sed subst in config.status. 
  2123. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  2124.  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  2125. $ac_vpsub
  2126. $extrasub
  2127. s%@CFLAGS@%$CFLAGS%g
  2128. s%@CPPFLAGS@%$CPPFLAGS%g
  2129. s%@CXXFLAGS@%$CXXFLAGS%g
  2130. s%@DEFS@%$DEFS%g
  2131. s%@LDFLAGS@%$LDFLAGS%g
  2132. s%@LIBS@%$LIBS%g
  2133. s%@exec_prefix@%$exec_prefix%g
  2134. s%@prefix@%$prefix%g
  2135. s%@program_transform_name@%$program_transform_name%g
  2136. s%@PRODUCT@%$PRODUCT%g
  2137. s%@VERSION@%$VERSION%g
  2138. s%@PROGRAMS@%$PROGRAMS%g
  2139. s%@CC@%$CC%g
  2140. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2141. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2142. s%@RANLIB@%$RANLIB%g
  2143. s%@CPP@%$CPP%g
  2144. s%@U@%$U%g
  2145. s%@ANSI2KNR@%$ANSI2KNR%g
  2146. s%@ALLOCA@%$ALLOCA%g
  2147. s%@LIBOBJS@%$LIBOBJS%g
  2148.  
  2149. CEOF
  2150. EOF
  2151. cat >> $CONFIG_STATUS <<EOF
  2152.  
  2153. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  2154. EOF
  2155. cat >> $CONFIG_STATUS <<\EOF
  2156. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2157.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2158.   case "$ac_file" in
  2159.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2160.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2161.   *) ac_file_in="${ac_file}.in" ;;
  2162.   esac
  2163.  
  2164.   # Adjust relative srcdir, etc. for subdirectories.
  2165.  
  2166.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2167.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2168.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2169.     # The file is in a subdirectory.
  2170.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2171.     ac_dir_suffix="/$ac_dir"
  2172.     # A "../" for each directory in $ac_dir_suffix.
  2173.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2174.   else
  2175.     ac_dir_suffix= ac_dots=
  2176.   fi
  2177.  
  2178.   case "$ac_given_srcdir" in
  2179.   .)  srcdir=.
  2180.       if test -z "$ac_dots"; then top_srcdir=.
  2181.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2182.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2183.   *) # Relative path.
  2184.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2185.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2186.   esac
  2187.  
  2188.   case "$ac_given_INSTALL" in
  2189.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2190.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2191.   esac
  2192.   echo creating "$ac_file"
  2193.   rm -f "$ac_file"
  2194.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2195.   case "$ac_file" in
  2196.   *Makefile*) ac_comsub="1i\\
  2197. # $configure_input" ;;
  2198.   *) ac_comsub= ;;
  2199.   esac
  2200.   sed -e "$ac_comsub
  2201. s%@configure_input@%$configure_input%g
  2202. s%@srcdir@%$srcdir%g
  2203. s%@top_srcdir@%$top_srcdir%g
  2204. s%@INSTALL@%$INSTALL%g
  2205. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  2206. fi; done
  2207. rm -f conftest.subs
  2208.  
  2209. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2210. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2211. #
  2212. # ac_d sets the value in "#define NAME VALUE" lines.
  2213. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2214. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  2215. ac_dC='\3'
  2216. ac_dD='%g'
  2217. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2218. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2219. ac_uB='\([     ]\)%\1#\2define\3'
  2220. ac_uC=' '
  2221. ac_uD='\4%g'
  2222. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2223. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2224. ac_eB='$%\1#\2define\3'
  2225. ac_eC=' '
  2226. ac_eD='%g'
  2227.  
  2228. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  2229. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2230.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2231.   case "$ac_file" in
  2232.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2233.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2234.   *) ac_file_in="${ac_file}.in" ;;
  2235.   esac
  2236.  
  2237.   echo creating $ac_file
  2238.  
  2239.   rm -f conftest.frag conftest.in conftest.out
  2240.   cp $ac_given_srcdir/$ac_file_in conftest.in
  2241.  
  2242. EOF
  2243.  
  2244. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2245. # the proper values into config.h.in to produce config.h.  And first:
  2246. # Protect against being on the right side of a sed subst in config.status. 
  2247. # Protect against being in an unquoted here document in config.status.
  2248. rm -f conftest.vals
  2249. cat > conftest.hdr <<\EOF
  2250. s/[\\&%]/\\&/g
  2251. s%[\\$`]%\\&%g
  2252. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2253. s%ac_d%ac_u%gp
  2254. s%ac_u%ac_e%gp
  2255. EOF
  2256. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2257. rm -f conftest.hdr
  2258.  
  2259. # This sed command replaces #undef with comments.  This is necessary, for
  2260. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2261. # on some systems where configure will not decide to define it.
  2262. cat >> conftest.vals <<\EOF
  2263. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2264. EOF
  2265.  
  2266. # Break up conftest.vals because some shells have a limit on
  2267. # the size of here documents, and old seds have small limits too.
  2268. # Maximum number of lines to put in a single here document.
  2269. ac_max_here_lines=12
  2270.  
  2271. rm -f conftest.tail
  2272. while :
  2273. do
  2274.   ac_lines=`grep -c . conftest.vals`
  2275.   # grep -c gives empty output for an empty file on some AIX systems.
  2276.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2277.   # Write a limited-size here document to conftest.frag.
  2278.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2279.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2280.   echo 'CEOF
  2281.   sed -f conftest.frag conftest.in > conftest.out
  2282.   rm -f conftest.in
  2283.   mv conftest.out conftest.in
  2284. ' >> $CONFIG_STATUS
  2285.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2286.   rm -f conftest.vals
  2287.   mv conftest.tail conftest.vals
  2288. done
  2289. rm -f conftest.vals
  2290.  
  2291. cat >> $CONFIG_STATUS <<\EOF
  2292.   rm -f conftest.frag conftest.h
  2293.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2294.   cat conftest.in >> conftest.h
  2295.   rm -f conftest.in
  2296.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  2297.     echo "$ac_file is unchanged"
  2298.     rm -f conftest.h
  2299.   else
  2300.     rm -f $ac_file
  2301.     mv conftest.h $ac_file
  2302.   fi
  2303. fi; done
  2304.  
  2305.  
  2306. test -z "$CONFIG_HEADERS" || date > stamp-h
  2307. exit 0
  2308. EOF
  2309. chmod +x $CONFIG_STATUS
  2310. rm -fr confdefs* $ac_clean_files
  2311. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
  2312.  
  2313.